package org.logtime.blog.pojo;

import org.logtime.blog.annotation.Element;
import org.logtime.blog.annotation.Key;
import org.logtime.blog.annotation.Persistent;

/**
 * @version: 1.0
 * @Author: itmins
 * @Email: itmins@gmail.com
 */
@Persistent
public class Article {

	public static final String WAITED_ARTICLES_STATUS = "待发布";
	
	public static final String POSTER_ARTICLES_STATUS = "已发布";

	public static final String DELETE_ARTICLES_STATUS = "已删除";

	@Key
	private Long id;

	@Element
	private String type;

	@Element
	private String status;

	@Element
	private String tags;

	@Element
	private String title;

	@Element
	private String content;

	@Element
	private Long parentId;

	@Element
	private String postDate;

	@Element
	private String postFrom;

	@Element
	private String modifiedDate;

	@Element
	private Long commentCount;

	@Element
	private Boolean commentAllow;

	@Element
	private Long posterId;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getPostDate() {
		return postDate;
	}

	public void setPostDate(String postDate) {
		this.postDate = postDate;
	}

	public String getModifiedDate() {
		return modifiedDate;
	}

	public void setModifiedDate(String modifiedDate) {
		this.modifiedDate = modifiedDate;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Long getCommentCount() {
		return commentCount;
	}

	public void setCommentCount(Long commentCount) {
		this.commentCount = commentCount;
	}

	public String getPostFrom() {
		return postFrom;
	}

	public void setPostFrom(String postFrom) {
		this.postFrom = postFrom;
	}

	public Boolean getCommentAllow() {
		return commentAllow;
	}

	public void setCommentAllow(Boolean commentAllow) {
		this.commentAllow = commentAllow;
	}

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}

	public Long getPosterId() {
		return posterId;
	}

	public void setPosterId(Long posterId) {
		this.posterId = posterId;
	}
}